package com.fuhao.springboot.Controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.fuhao.springboot.service.StudentsServiceDubbo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentsController {

    @Reference
    private StudentsServiceDubbo studentsServiceDubbo;

    @RequestMapping("/Dubbo/findAll")
    public Object findAll(){
        return studentsServiceDubbo.findAll();
    }
}
